package com.itheima.riggie.common;
/*
*
* 设置和获取当前线程的id
* */
public class BaseContext {
    //一条线程内共享数据 有get,set ,remove方法
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static Long getThreadLocal() {
        return threadLocal.get();
    }

    public static void setThreadLocal(Long id) {
        threadLocal.set(id);
    }
}
